import request from '@/utils/request';
// 获取和缓医生小程序码
export function getWxacode(patientId) {
  return request({
    url: `/patients/${patientId}/wxacode`,
    method: 'get'
  });
}

// 获取当前用户的会员服务

export function getInservice(patientId) {
  return request({
    url: `/patient/${patientId}/insurance_order/inservice`,
    method: 'get'
  });
}

// 获取用户家庭卡授权视频医生信息

export function getAuthMedicOrderInfo(patientId) {
  return request({
    url: `/patients/${patientId}/authMedicOrderInfo`,
    method: 'get'
  });
}
// 提交授权信息
export function postAuthMedicOrder(patientId, data) {
  return request({
    url: `/patients/${patientId}/authMedicOrder`,
    method: 'post',
    data
  });
}
